package com.ae;

import com.ae.observer.Observable;
import com.ae.observer.Observer;

public class DuckCall implements Quackable {

	Observable observable ; 
	
	public DuckCall() {
		observable = new Observable(this);
	}
	/**
	 * Quack M
	 */
	@Override
	public void quack() {
		System.out.println("Kwak");
		notifyObserver(); 
	}
	
	@Override
	public void registerObserver(Observer o) {
		observable.registerObserver(o);
		
	}
	@Override
	public void notifyObserver() {
		observable.notifyObserver();		
	}

}
